﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ResUma
{
    public partial class TipSporuriRezFrm : FrmRezumat
    {
        private BindingSource bs = null;
        public TipSporuriRezFrm(ModuleClass mc,BindingSource tipSpor):base(mc)
        {
            bs = tipSpor;
            InitializeComponent();
            formatTipSporBindingSource.List.Add(new FormatTipSpor("Grila", "G"));
            formatTipSporBindingSource.List.Add(new FormatTipSpor("Procent", "P"));
            formatTipSporBindingSource.List.Add(new FormatTipSpor("Suma", "S"));
            formatTipSporBindingSource.List.Add(new FormatTipSpor("Grila Ocupatie", "F"));
            formatTipSporBindingSource.List.Add(new FormatTipSpor("Grila Ocupatie/Departamente", "D"));


            intraInBindingSource.List.Add(new FormatTipSpor("Salariu de baza", "SB"));
            intraInBindingSource.List.Add(new FormatTipSpor("Salariu G", "SG"));
            intraInBindingSource.List.Add(new FormatTipSpor("Baza vechime", "BV"));
        }

        private void TipSporuriRezFrm_Load(object sender, EventArgs e)
        {
            if (bs != null)
                tipSporDGV.DataSource = bs;
            bs.Sort = "Ordonare";
        }
    }
}
